﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KOPLibrary.Forms
{
    public partial class InputQuery : Form
    {
        public InputQuery()
        {
            InitializeComponent();
        }

        private void InputQuery_Load(object sender, EventArgs e)
        {

        }

        public static bool Execute(string message, ref string input)
        {
            InputQuery form = new InputQuery();
            form.ctlMessage.Text = message;
            form.ctlText.Text = input;
            form.ctlText.Focus();
            if (form.ShowDialog() == DialogResult.OK)
            {
                input = form.ctlText.Text;
                return true;
            }
            else return false;
        }
    }
}
